package ${packageName}.entity.imp;

<#list entityImpImportList as import>
import ${import};
</#list>

/**
 * ${functionName}导入对象 ${ClassName}Imp
 * 
 * @author ${author}
 * @date ${datetime}
 */
@ColumnWidth(30)
public class ${ClassName}Imp {

<#list columns as column>
	<#if column.edit> 
    /** ${column.javaFieldDesc} */
		<#if column.htmlType == 'date'> 
    @JsonFormat(pattern = DateUtil.PATTERN_YYYY_MM_DD)
    	<#elseif column.htmlType == "datetime"> 
    @JsonFormat(pattern = DateUtil.PATTERN_DEFAULT)
    	</#if>
    @ExcelProperty("${column.javaFieldDesc}")
    	<#if column.dictCode != ''> 
    @DictValid(message = "无效的${column.javaFieldDesc}")
    @Dict(dictCode = "${column.dictCode}", reverse = true)
    private String ${column.javaField}DictText;
    	<#else>
    private ${column.javaType} ${column.javaField};
    	</#if>
    
    </#if>
</#list>

<#list columns as column>
	<#if column.superColumn && column.edit && column.dictCode != ''> 
    @Dict(dictCode = "${column.dictCode}", reverse = true)
    public ${column.javaType} get${column.attrName}() {
        return ${column.javaField};
    }

    <#elseif column.edit>
    	<#if column.dictCode != ''> 
    public void set${column.attrName}DictText(String ${column.javaField}DictText) {
        this.${column.javaField}DictText = ${column.javaField}DictText;
    }

    public String get${column.attrName}DictText() {
        return ${column.javaField}DictText;
    } 
    
    	<#else>
    public void set${column.attrName}(${column.javaType} ${column.javaField}) {
        this.${column.javaField} = ${column.javaField};
    }

    public ${column.javaType} get${column.attrName}() {
        return ${column.javaField};
    } 
    
    	</#if>
    </#if>
</#list>

}
